package com.lucaswangdev.biz.manager;

import com.lucaswangdev.model.domain.WorkOrderParam;
import com.lucaswangdev.model.dto.WorkOrderDTO;

import java.util.List;

public interface WorkOrderManager {
    /**
     * 创建
     * @param workOrderDTO
     * @return
     */
    Long create(WorkOrderDTO workOrderDTO);

    /**
     * 根据条件count
     * @param param
     * @return
     */
    Long countByParam(WorkOrderParam param);

    /**
     * 根据条件查询
     * @param param
     * @return
     */
    List<WorkOrderDTO> queryByParam(WorkOrderParam param);

    /**
     * 更新
     * @param workOrderDTO
     */
    void update(WorkOrderDTO workOrderDTO);

    /**
     * 删除
     * @param id
     */
    void deleteById(Long id);

    WorkOrderDTO queryById(Long id);
}
